﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using NUnit.Framework;
using Test_av_testdriven_utveckling;

namespace Test
{
    [TestFixture]
    public class Test
    {
        [SetUp]
        public void Init()
        {
        }

        [Test]
        public void TestIfInteger()
        {
            Reguljära_uttryck ru = new Reguljära_uttryck();
            string p1 = "20";
            string p2 = "152";
            string p3 = "hej";
            string p4 = "yo";
            Assert.AreEqual(true, ru.IsInteger(p1));
            Assert.AreEqual(true, ru.IsInteger(p2));
            Assert.AreEqual(false, ru.IsInteger(p3));
            Assert.AreEqual(false, ru.IsInteger(p4));
        }

        //[Test]
        ////public void TestIfFloat()
        ////{
        ////    Reguljära_uttryck ru = new Reguljära_uttryck();
        ////    string p1 = "20";
        ////    string p2 = "43.5";
        ////    string p3 = "hejsan";
        ////    string p4 = "yo";
        ////    Assert.AreEqual(true, ru.IsFloat(p1));
        ////    Assert.AreEqual(true, ru.IsFloat(p2));
        ////    Assert.AreEqual(false, ru.IsFloat(p3));
        ////    Assert.AreEqual(false, ru.IsFloat(p4));
        ////}

    }
}
